.fd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  width: 100%;
  height: 60px;
  font-size: 14px;
  color: #fff;
  background: #3296fa;
  display: flex;
  align-items: center;
  &>* {
    flex: 1;
    width: 100%
  }
  .fd-nav-left {
    display: -webkit-box;
    display: flex;
    align-items: center
  }
  .fd-nav-center {
    flex: none;
    width: 600px;
    text-align: center
  }
  .fd-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right
  }
  .fd-nav-back {
    display: inline-block;
    width: 60px;
    height: 60px;
    font-size: 22px;
    border-right: 1px solid #1583f2;
    text-align: center;
    cursor: pointer;
    &:hover {
      background: #5af
    }
    &:active {
      background: #1583f2
    }
    .anticon {
      line-height: 60px
    }
  }
}

.fd-nav .fd-nav-title {
  width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 15px
}

.fd-nav a {
  color: #fff;
  margin-left: 12px
}

.fd-nav .button-publish {
  min-width: 80px;
  margin-left: 4px;
  margin-right: 15px;
  color: #3296fa;
  border-color: #fff
}

.fd-nav .button-publish.ant-btn:focus,
.fd-nav .button-publish.ant-btn:hover {
  color: #3296fa;
  border-color: #fff;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .3)
}

.fd-nav .button-publish.ant-btn:active {
  color: #3296fa;
  background: #d6eaff;
  box-shadow: none
}

.fd-nav .button-preview {
  min-width: 80px;
  margin-left: 16px;
  margin-right: 4px;
  color: #fff;
  border-color: #fff;
  background: transparent
}

.fd-nav .button-preview.ant-btn:focus,
.fd-nav .button-preview.ant-btn:hover {
  color: #fff;
  border-color: #fff;
  background: #59acfc
}

.fd-nav .button-preview.ant-btn:active {
  color: #fff;
  border-color: #fff;
  background: #2186ef
}

.fd-nav-content {
  position: fixed;
  top:50px;
  // left: 0;
  // right: 0
  // bottom: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 30px
}


.zoom {
  display: flex;
  position: fixed;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 40px;
  width: 125px;
  right: 40px;
  margin-top: 30px;
  z-index: 10
}

.zoom .zoom-in,
.zoom .zoom-out {
  width: 30px;
  height: 30px;
  background: #fff;
  color: #c1c1cd;
  cursor: pointer;
  background-size: 100%;
  background-repeat: no-repeat
}

.zoom .zoom-out {
  background-image: url(https://gw.alicdn.com/tfs/TB1s0qhBHGYBuNjy0FoXXciBFXa-90-90.png)
}

.zoom .zoom-out.disabled {
  opacity: .5
}

.zoom .zoom-in {
  background-image: url(https://gw.alicdn.com/tfs/TB1UIgJBTtYBeNjy1XdXXXXyVXa-90-90.png)
}

.zoom .zoom-in.disabled {
  opacity: .5
}

.node-wrap-box {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  width: 268px;
  // min-height: 72px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

// .node-wrap-box:after {
//   pointer-events: none;
//   content: "";
//   position: absolute;
//   top: 0;
//   bottom: 0;
//   left: 0;
//   right: 0;
//   z-index: 2;
//   border: 1px solid transparent;
//   transition: all .1s cubic-bezier(.645, .045, .355, 1);
//   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
// }

.node-wrap-box.active .close,
.node-wrap-box:active .close,
.node-wrap-box:hover .close {
  display: block
}

.node-wrap-box.error:after {
  border: 1px solid #f25643;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
}

.node-wrap-box .title {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 30px;
  width: 100%;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  color: #fff;
  text-align: left;
  background: #576a95;
  border-radius: 4px 4px 0 0
}

.node-wrap-box .title .iconfont {
  font-size: 12px;
  margin-right: 5px
}

.node-wrap-box .placeholder {
  color: #bfbfbf
}

.node-wrap-box .close {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  font-size: 14px;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px
}

.node-wrap-box .content {
  position: relative;
  font-size: 14px;
  padding: 16px;
  padding-right: 30px
}

.node-wrap-box .content .text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}

.node-wrap-box .content .arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 14px;
  font-size: 14px;
  color: #979797
}

.start-node.node-wrap-box .content .text {
  display: block;
  white-space: nowrap
}

.node-wrap-box:before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  border-style: solid;
  border-width: 8px 6px 4px;
  border-color: #cacaca transparent transparent;
  background: #f5f5f7
}
.no-arrow:before{
  display: none;
}
.node-wrap-box.start-node:before {
  content: none
}

.top-left-cover-line {
  left: -1px
}

.top-left-cover-line,
.top-right-cover-line {
  position: absolute;
  height: 8px;
  width: 50%;
  background-color: #f5f5f7;
  top: -4px
}

.top-right-cover-line {
  right: -1px
}

.bottom-left-cover-line {
  left: -1px
}

.bottom-left-cover-line,
.bottom-right-cover-line {
  position: absolute;
  height: 8px;
  width: 50%;
  background-color: #f5f5f7;
  bottom: -4px
}

.bottom-right-cover-line {
  right: -1px
}

.dingflow-design {
  width: 100%;
  background-color: #f5f5f7;
  overflow: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0
}

.dingflow-design .box-scale {
  transform: scale(1);
  display: inline-block;
  position: relative;
  width: 100%;
  padding: 54.5px 0;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
  background-color: #f5f5f7;
  transform-origin: 50% 0px 0px;
}

.dingflow-design .node-wrap {
  flex-direction: column;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  padding: 0 50px;
  position: relative
}

.dingflow-design .branch-wrap,
.dingflow-design .node-wrap {
  display: flex;
  width: 100%
}

.dingflow-design .branch-box-wrap {
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: 160px;
  width: 100%;
  -ms-flex-negative: 0;
  flex-shrink: 0
}

.dingflow-design .branch-box {
  display: flex;
  overflow: visible;
  min-height: 160px;
  height: auto;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid #ccc;
  position: relative;
}

.dingflow-design .branch-box .col-box {
  background: #f5f5f7;
  padding-top:20px;
  &.pt-none{
    padding-top: 4px;
  }
  &.pt-max{
    padding-top: 60px;
  }
  &.mt-fu{
    margin-top: -4px;
  }
}

.dingflow-design .branch-box .col-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  margin: auto;
  width: 2px;
  height: 100%;
  background-color: #cacaca
}

.dingflow-design .add-branch {
  border: none;
  outline: none;
  user-select: none;
  justify-content: center;
  font-size: 12px;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  color: #3296fa;
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center center;
  cursor: pointer;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  -webkit-transition: all .3s cubic-bezier(.645, .045, .355, 1);
  transition: all .3s cubic-bezier(.645, .045, .355, 1)
}

.dingflow-design .add-branch:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .1)
}

.dingflow-design .add-branch:active {
  transform: translateX(-50%);
  box-shadow: none
}

.dingflow-design .col-box {
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  position: relative
}

.dingflow-design .condition-node {
  min-height: 140px;
}

.dingflow-design .condition-node,
.dingflow-design .condition-node-box {
  // padding-top: 8px;
}

.dingflow-design .condition-node-box {
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  flex-grow: 1;
  position: relative
}

.dingflow-design .condition-node-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 2px;
  height: 100%;
  background-color: #cacaca
}

.dingflow-design .auto-judge {
  position: relative;
  width: 268px;
  min-height: 72px;
  background: #fff;
  border-radius: 4px;
  padding: 14px 19px;
  cursor: pointer
}

.dingflow-design .auto-judge:after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .1s cubic-bezier(.645, .045, .355, 1);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
}


.dingflow-design .auto-judge.active .close,
.dingflow-design .auto-judge:active .close,
.dingflow-design .auto-judge:hover .close {
  display: block
}

.dingflow-design .auto-judge.error:after {
  border: 1px solid #f25643;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
}

.dingflow-design .auto-judge .title-wrapper {
  position: relative;
  font-size: 12px;
  color: #15bc83;
  text-align: left;
  line-height: 16px
}

.dingflow-design .auto-judge .title-wrapper .editable-title {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.dingflow-design .auto-judge .title-wrapper .priority-title {
  display: inline-block;
  float: right;
  margin-right: 10px;
  color: rgba(25, 31, 37, .56)
}

.dingflow-design .auto-judge .placeholder {
  color: #bfbfbf
}

.dingflow-design .auto-judge .close {
  display: none;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 20px;
  height: 20px;
  font-size: 14px;
  color: rgba(0, 0, 0, .25);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  z-index: 2
}

.dingflow-design .auto-judge .content {
  font-size: 14px;
  color: #191f25;
  text-align: left;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}

.dingflow-design .auto-judge .sort-left,
.dingflow-design .auto-judge .sort-right {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  z-index: 1
}

.dingflow-design .auto-judge .sort-left {
  left: 0;
  border-right: 1px solid #f6f6f6
}

.dingflow-design .auto-judge .sort-right {
  right: 0;
  border-left: 1px solid #f6f6f6
}

.dingflow-design .auto-judge:hover .sort-left,
.dingflow-design .auto-judge:hover .sort-right {
  display: flex;
  align-items: center
}

.dingflow-design .auto-judge .sort-left:hover,
.dingflow-design .auto-judge .sort-right:hover {
  background: #efefef
}

.dingflow-design .end-node {
  border-radius: 50%;
  font-size: 14px;
  color: rgba(25, 31, 37, .4);
  text-align: left;
  position: relative;
  top: -10px;
}

.dingflow-design .end-node .end-node-circle {
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: #dbdcdc
}

.dingflow-design .end-node .end-node-text {
  margin-top: 5px;
  text-align: center
}

.approval-setting {
  border-radius: 2px;
  margin: 20px 0;
  position: relative;
  background: #fff
}


.connector-setting-view-main{
  overflow-y: auto;
  display: flex;
  width: 100%;
  overflow-x: hidden;
  .connector-app,.trigger-node{
    width: 268px;
    position: relative;
    border-radius: 6px;
    line-height: 32px;
    padding: 0 6px 6px;
    cursor: pointer;
    background: linear-gradient(260deg, #92D5FF 3%, #13C2C3 100%);
    &:hover,&.active{
      box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.16);
    }
    .search-tree{
      height: auto;
    }
    .header{
      width: 100%;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #fff;
      line-height: 32px;
      padding: 0 10px;
      position: relative;
      i{
        position: absolute;
        right: 4px;
        font-size: 14px;
      }
    }
    .app-info,.app-info-empty{
      width: 100%;
      height: 66px;
      // border-top: 1px solid #D8D8D8;
      display: flex;
      align-items: center;
      padding: 0 12px;
      background-color: #fff;
      border-radius: 4px;
      // margin: 0 5px 5px 5px;
      .appLogo{
        width: 48px;
        height: 48px;
        border-radius: 5px;
        border: 1px solid #D9D9D9;
        display: flex;
        align-content: center;
        justify-content: center;
        color: $color-primary-light-6;
        flex-shrink: 0;
        img {
          width: 42px;
          height: 42px;
        }
        i{
          font-size: 24px;
          display: flex;
          align-items: center;
        }
      }
      span.info{
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #262626;
        margin-left: 12px;
        width: 140px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
      .icon-right1{
        font-size: 16px;
        margin-left: auto;
        color:#bfbfbf;
      }
      .app2-name{
        line-height: 24px;
        span{
          display: block;
        }
        .action-type{
          color: #bfbfbf;
        }
      }
    }
    .app-info-empty{
      height: 32px;
      color: #bfbfbf;
      display: flex;
      justify-content: center;
      .message-title {
        margin-left: 0;
      }
    }
    
    .search-tree{
      .tree-wrap{
        left: 150px;
      }
    }
  }
  .message-node{
    background: linear-gradient(260deg, #ACE077 3%, #52C41A 100%) !important;
  }
  .connector-app-execute{
    background: linear-gradient(263deg, #FAAA64 1%, #FF7A46 100%) !important;
  }
  .code-node {
    background: linear-gradient(263deg, #FAAA64 1%, #FF7A46 100%) !important;
  }
  .condition-app{
    background: #fff !important;
    .header{
      color:#8C8C8C !important;
    }
    .condition-list{
      margin:auto;
      width: 258px;
      background: #FFFFFF;
      border-radius: 4px;
      border: 1px solid #E8E8E8;
    }
    .condition-empty, .condition-box .condition-header{
      height: 28px;
      background: #FAFAFA;
      border-radius: 2px;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #262626;
      line-height: 28px;
      padding-left: 10px;
      @include text-ellipsis();
    }
    .condition-content{
      padding: 4px 8px;
      max-height: 120px;
      overflow-y: auto;
      .rule-text{
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #595959;
        line-height: 20px;
        .and-text,.operator-text{
          color:#8c8c8c;
        }
      }
    }
    .code-content {
      padding: 4px 8px;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
  }
  .trigger-node{
    background: linear-gradient(243deg, #D3ADF7 0%, #2F93EB 100%);
  }
  .connect-line{
    width: 20px;
    height: 100px;
    .line{
      width: 1px;
      height: 90px;
      background-color: $color-primary;
      z-index: 1;
      margin: auto;
    }
    .arrow{
      z-index: 0;
      text-align: center;
      color: $color-primary;
      transform: rotateZ(136deg);
      margin: auto;
      position: relative;
      top:-20px;
      // left: -1px;
      i{
        font-size: 20px;
        position: relative;
      }
    }
  }
  .add-app-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #FFFFFF;
    border-radius: 50%;
    color: $color-primary-light-6;
    font-size: 24px;
    cursor: pointer;
    font-weight: 600;
    &:hover{
      color:#fff;
      background-color: $color-primary-light-6;
    }
  }
}
.connector-setting-view-panel{
  width: 450px;
  height: 100%;
  transition: right .3s ease;
  position: relative;
  right: -450px;
  &.active{
    right: 0;
  }
  .config-panel{
    width: 100%;
    height: 100%;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    overflow-y: auto;
    position: relative;
    padding-top: 68px;
    .config-step{
      position:absolute;
      top: 0;
      width: 100%;
      box-shadow: 0px 1px 2px 0px rgba(216,216,216,0.3);
      padding: 12px;
      z-index: 1;
      background-color: #fff;
      .step-title{
        cursor: pointer;
      }
    }
    .config-main{
      overflow-y: auto;
      padding: 12px;
      h4{
        margin-top: 12px;
      }
      .el-select,.el-cascader{
        width: 100%;
      }

      .config-panel-setting{
        .config-panel-setting-title{
          height: 20px;
          font-size: 14px;
          font-weight: 600;
          color: #262626;
          line-height: 20px;
          margin-bottom: 10px;
        }
        .el-button--primary.is-plain{
          width: 100%;
          color: $color-primary-light-6!important;
          background-color: $color-primary-light-1 !important;
          &:hover{
            background-color: $color-primary-light-6!important;
            color: #fff!important;
          }
        }
        .config-panel-setting-detail{
          border-radius: 2px;
          border: 1px solid #E8E8E8;
          margin-top: 10px;
          .setting-title{
            height: 28px;
            background: #FAFAFA;
            line-height: 28px;
            font-size: 14px;
            color: #262626;
            padding-left: 12px;
          }
          .setting-content{
            padding: 12px 12px 30px 12px;
          }
        }

        .rule-text{
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #595959;
          line-height: 24px;
          span{
            // display: inline-block;
            // width: 38%;
          }
          .operator-text{
            // width: 20%;
          }
          .and-text,.operator-text{
            color:#8c8c8c;
          }
        }
      }
    }
    // .connector-module-connector-dialog-detail-column{
    //   margin-top: 8px;
    // }
  }
}
.connector-config-modal{
  width: 840px!important;
  .modal-config-desc{
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #8C8C8C;
    line-height: 24px;
  }
}

// .connector-module-rule-form-item-left-to-field-select{
//   width: 187px;
// }
.add-app-choice{
  display: flex;
}
// .branch-wrap .branch-wrap .add-node-btn-box{
//   display: none;
// }
.add-node-btn{
  .icon-add2{
    font-weight: 600;
  }
}
.node-entry{
  position: relative;
  .delete-btn{
    position: absolute;
    display: none;
    width: 30px;
    height: 22px;
    background: #E5E5E4;
    border-radius: 11px;
    font-size: 12px;
    z-index: 10;
    right: -8px;
    top:-11px;
    line-height: 22px;
    color:#999;
    text-align: center;
    cursor: pointer;
    &:hover{
      color:#F56C6C;
    }
  }
  &:hover{
    .delete-btn{
      display: block;
    }
  }
}
.trigger-drawer{
  .el-drawer__header{
    font-size: 16px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #303233;
  }
  .drawer-content{
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    .drawer-footer{
      width: 100%;
      position: absolute;
      bottom: 0;
      z-index: 2;
      display: flex;
      height: 52px;
      background-color: #fff;
      border-top: 1px solid #e8e8e8;
      justify-content: flex-end;
      align-items: center;
      padding-right: 16px;
    }
    .drawer-form{
      padding:0 12px 12px;
      height: calc(100% - 60px);
      overflow-y: auto;
      // 执行应用
      .action-app-form{
        .action-app-form-item{
          .title{
            font-size: 14px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 600;
            color: #262626;
            line-height: 32px;
            margin-top: 8px;
          }
          .desc{
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #8C8C8C;
            line-height: 16px;
          }
        }
      }
      .message-content {
        .system-mes-tel__content {
          .sys-template-view {
            flex: 1;
            width: 250px!important;
          }
          .content-right {
            flex: 1;
            width: 250px!important;
            margin-left: 20px;
            .template-opetate{
              padding-right: 12px;
            }
          }
        }
      }
    }
  }
}

.trigger-drawer {
  
  .template-content {
    height: auto !important;
    min-height: 420px;
    max-height: 540px;
    &__call{
      min-height: auto;
    }
  }
  
}

.action-app-form {
  
  .err-msg-wrap {
    position: absolute;
  }
  
  .form-item-error {
    line-height: 12px;
  }
  
}

.connector-setting-view-main {
  .trigger-start-app {
    .tree-wrap {
      max-height: 520px;
    }
  }
}